AUTOMAKE_OPTIONS = foreign

SUBDIRS = . client fetchlyric  ui

INCLUDES = -Iinclude  $(GLOBAL_CFLAGS)

pkglib_LTLIBRARIES = libclient.la  libfetchlyric.la
libclient_la_SOURCES = client/client.c
libclient_la_LIBADD = $(GLIB_LIBS)  -ldl
libclient_la_CFLAGS = $(GLIB_CFLAGS)

libfetchlyric_la_SOURCES = fetchlyric/fetchlyric.c
libfetchlyric_la_LIBADD = $(GLIB_LIBS)  -ldl
libfetchlyric_la_CFLAGS = $(GLIB_CFLAGS)



lib_LTLIBRARIES = liblyricplayer.la
liblyricplayer_la_SOURCES = argproc.c  lyricparse.c common.c configfile.c \
							metainfo.c metainfo_mp3.c encoding_convert.c  \
	                        metainfo_formats.h metainfo_ape.c
liblyricplayer_la_LIBADD = $(GLIB_LIBS)  -lenca
liblyricplayer_la_CFLAGS = $(GLIB_CFLAGS)

bin_PROGRAMS = lyricplayer
lyricplayer_SOURCES = main.c include/main.h
lyricplayer_LDADD = $(GLIB_LIBS) liblyricplayer.la libclient.la  libfetchlyric.la
lyricplayer_CFLAGS = $(GLIB_CFLAGS)

pkginclude_HEADERS = include/argproc.h include/client.h include/common.h include/configfile.h \
				include/encoding_convert.h include/fetchlyric.h include/lyricparse.h \
				include/metainfo_mp3.h  include/metainfo.h include/ui.h include/metainfo_ape.h
